package com.example.lizhixin.object_three_team;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.FrameLayout;

import com.ashokvarma.bottomnavigation.BottomNavigationBar;
import com.ashokvarma.bottomnavigation.BottomNavigationItem;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.main_Frame)
    FrameLayout mainFrame;
    @BindView(R.id.main_bot_ber)
    BottomNavigationBar mainBotBer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        initbottom();
        initFragment();
    }

    private void initFragment() {

    }

    private void initbottom() {
        mainBotBer.addItem(new BottomNavigationItem(R.mipmap.ic_launcher,"精选"))
                .addItem(new BottomNavigationItem(R.mipmap.ic_launcher,"游戏"))
                .addItem(new BottomNavigationItem(R.mipmap.ic_launcher,"社区"))
                .addItem(new BottomNavigationItem(R.mipmap.ic_launcher,"我的"))
                .initialise();
    }
}
